package com.settlement.system.mapper;

import com.settlement.system.model.entity.common.TblWpAuditCloseAccount;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * 唯品稽核关账设置 Mapper 接口
 *
 * @author xiaochuan
 * @since 2020-11-19
 */
public interface TblWpAuditCloseAccountMapper extends BaseMapper {

    /**
     * 根据店铺编码 获取锁帐数据
     *
     * @param shopNo
     * @return
     * @throws Exception
     */
    public TblWpAuditCloseAccount getByShopNo(@Param("shopNo") String shopNo) throws Exception;

    /**
     * 根据店铺编码 获取最大的初始日期
     * @param shopNo
     * @return
     * @throws Exception
     */
    public Date getMaxInitialDateByShopNo(@Param("shopNo") String shopNo) throws Exception;

    /**
     * 根据Id 获取锁帐数据
     *
     * @param id
     * @return
     */
    public TblWpAuditCloseAccount getById(@Param("id") String id);

    /**
     * 更新 关账日
     *
     * @param current
     * @return
     */
    public Integer updateRealCloseAccountDate(TblWpAuditCloseAccount current);
}

